package com.yanqu.road.entity.orewar;

import com.alibaba.fastjson.JSON;
import com.yanqu.road.entity.player.UserBaseInfo;

/**
 * 矿战记录
 */
public class OreWarRecord {

	private String recordUid;

	private long userId;

	private int activityId;

	private int pitId;

	private long enemyUserId;

	private UserBaseInfo enemyBaseData = new UserBaseInfo();

	private long recordTime;

	private boolean isWin;

	public String getRecordUid() {
		return recordUid;
	}

	public void setRecordUid(String recordUid) {
		this.recordUid = recordUid;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public int getActivityId() {
		return activityId;
	}

	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}

	public int getPitId() {
		return pitId;
	}

	public void setPitId(int pitId) {
		this.pitId = pitId;
	}

	public long getEnemyUserId() {
		return enemyUserId;
	}

	public void setEnemyUserId(long enemyUserId) {
		this.enemyUserId = enemyUserId;
	}

	public UserBaseInfo getEnemyBaseData() {
		return enemyBaseData;
	}

	public String getEnemyBaseDataJsonStr(){
		if(null == enemyBaseData){
			return "{}";
		}else {
			return JSON.toJSONString(enemyBaseData);
		}
	}

	public void setEnemyBaseData(UserBaseInfo enemyBaseData) {
		this.enemyBaseData = enemyBaseData;
	}

	public long getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(long recordTime) {
		this.recordTime = recordTime;
	}

	public boolean isWin() {
		return isWin;
	}

	public void setWin(boolean win) {
		isWin = win;
	}
}
